package com.four.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.four.dao.ProductUrlMapper;
import com.four.entity.Producturl;
import com.four.entity.ProducturlParam;
import com.four.service.ProductUrlService;

@Service
public class ProductUrlServiceImpl implements ProductUrlService {
	@Autowired
	ProductUrlMapper productUrlMapper;
	
	@Override
	public List<Producturl> getProUrl(ProducturlParam producturlParam) {
		// TODO Auto-generated method stub
		return productUrlMapper.getProUrl(producturlParam);
	}

	@Override
	public boolean insertProUrl(Producturl productUrl) {
		// TODO Auto-generated method stub
		return productUrlMapper.insertProUrl(productUrl);
	}

	@Override
	public boolean updateProUrl(Producturl productUrl) {
		// TODO Auto-generated method stub
		return productUrlMapper.updateProUrl(productUrl);
	}
	@Override
	public boolean delProUrl(Integer pid) {
		// TODO Auto-generated method stub
		return productUrlMapper.delProUrl(pid);
	}

	@Override
	public boolean deletePiProUrl(String[] array) {
		// TODO Auto-generated method stub
		return productUrlMapper.deletePiProUrl(array);
	}

	@Override
	public List<Producturl> getProUrls() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Producturl> getProUrlProId(Integer proId) {
		// TODO Auto-generated method stub
		return productUrlMapper.getProIdDetails(proId);
	}

	@Override
	public List<Producturl> getProIdDetails(Integer proId) {
		// TODO Auto-generated method stub
		return productUrlMapper.getProIdDetails(proId);
	}

	

}
